<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app" style="color: red;font-size: 20px;">
        hello {{name}}
        <h1 class="testclass">{{name}}</h1>
        <ul>
            <li style="color: green;">{{age}}</li>
            <li>{{info.job}}</li>
        </ul>
        <div>我爱学习</div>
    </div>
    <script src="dist/umd/vue.js"></script>
    <script>
        // options API
        // 模板： render > template > html式模板
        let vm = new Vue({
            el: '#app',
            data() {
                return {
                    name: 'neostudy',
                    age: 34,
                    info: {
                        job: 'teacher',
                        students: [
                            {
                                id: 1,
                                name: '小张'
                            },
                            {
                                id: 2,
                                name: '小王'
                            }
                        ]
                    },
                    hobby: ['piano', 'travel', 'film']
                }
            }
        });
    </script>
</body>

</html>